package com.db.admin;

import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

import com.db.organization.DeptJobDAO;
import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class AdminDeptDAO {
	private SqlMapClientTemplate template;
	public void setTemplate(SqlMapClientTemplate template) {
		this.template = template;
	}
	
	public List<com.db.organization.DeptVO> DeptList() throws Exception {
		return template.queryForList("DeptList");
		
	}
	public void DeptInsert(com.db.organization.DeptVO vo) throws Exception {
		template.insert("DeptInsert",vo);
	}
	
}
